package com.zb.network.service.impl;

import cn.hutool.core.collection.CollectionUtil;
import com.baomidou.mybatisplus.core.toolkit.Assert;
import com.zb.network.service.ConNetworkEmpTypeService;
import com.zb.service.ZjNetworkEmpTypeService;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.Resource;
import java.util.List;

/**
 * @Author WEN
 * @Date 2023/9/11 0011
 **/
@Service
public class ConNetworkEmpTypeServiceImpl implements ConNetworkEmpTypeService {

    @Resource
    private ZjNetworkEmpTypeService networkEmpTypeService;

    // 根据ID批量删除网点人员类型
    @Override
    @Transactional
    public void delete(List<Long> ids) {
        if (CollectionUtil.isEmpty(ids)) {
            return;
        }
        // TODO 查询与网点人员关联
        networkEmpTypeService.removeByIds(ids);
    }
}
